using System;
using Microsoft.SPOT;
using EmbeddedWebserver.Core;
using EmbeddedWebserver.Core.Handlers.Abstract;

namespace HttpIntfLib
{
    class Status : HandlerBase
    {
        #region Non-public members

        protected override void ProcessRequestWorker(HttpContext pContext)
        {
            pContext.Response.ResponseBody = "READY";
            /*
            Random _generator = new Random();
            int retval = _generator.Next();
            pContext.Response.ResponseBody = "{ \"value\": " + retval + "}";
            pContext.Response.ContentType = "application/json";
             * */

        }

        #endregion

        #region Constructors

        public Status() : base(HttpMethods.GET) { // TBD 
        }

        #endregion

    }
}
